package com.jiang.mapper;

import com.jiang.bean.User;
import org.apache.ibatis.annotations.Param;

/**
 * 用户mapper层
 */
public interface UserMapper {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByLogname(@Param(value = "logname") String logname);

    String selectRoleByRoleId(@Param(value = "roleId") Integer roleId);
}